<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/3/22 0022
 * Time: 11:17
 */

namespace App\Http\Controllers\Web\PrizeRechargeRecords;

use App\App\Services\Web\UserService;
use App\Http\Controllers\Controller;
use App\Models\PrizePayment\PrizePaymentService;
use Illuminate\Http\Request;

class PrizePaymentController extends Controller
{
    public function index()
    {
        return view('web.prizeRechargeRecords.list');
    }

    public function prizePaymentList(Request $request, PrizePaymentService $prizePaymentService, UserService $userService)
    {
        $loginUser = $userService->getLoginUser();
        $user_id = $loginUser['id'];
        $data = $prizePaymentService->getPrizePaymentPageList($request, $user_id);

        return $this->respondJson($data);
    }
}
